<?php
	session_start();
	$usercon = mysql_connect("localhost","polymer","6uzCxvzP");
	//$usercon = mysql_connect("localhost","reagentd","geD6k3d05Z");
	if (!$usercon)
  	{
  		die('Could not connect: ' . mysql_error());
  	}
	mysql_select_db("polymer", $usercon);
	//mysql_select_db("reagentd_db", $con);
	mysql_query("set names 'utf8'");
	$currentid=$_SESSION['user'];
	$res_temp=mysql_query("SELECT type FROM reagent_users WHERE username='".$currentid."'");
	//echo $res_temp;
	$row_temp = mysql_fetch_array($res_temp);
	$currenttype = $row_temp['type'];
	$res_temp = mysql_query("SELECT admin FROM reagent_users WHERE username='".$currentid."'");
	$row_temp = mysql_fetch_array($res_temp);
	$currentadmin = $row_temp['admin'];
	mysql_close($usercon);
	//echo $currentid." ".$currenttype."".$currentadmin;
?>
